package MIU.TwistedLabirynth.Shapes;

import org.anddev.andengine.entity.sprite.Sprite;
import org.anddev.andengine.opengl.texture.region.TextureRegion;

import MIU.TwistedLabirynth.pac.GameLogicController;

public class DirectedSprite  extends Sprite{
	public DirectedSprite(float pX, float pY, float pWidth, float pHeight, ShapeDirection rotation, TextureRegion textureRegion) {
		super(pX, pY, pWidth, pHeight, textureRegion);
		
		/*
		switch(rotation){
			case Left:
				this.setRotation(180.0f);
				break;
			case Up:
				break;
			case Right:
				this.setRotation(0.0f);
				break;
			case Down:
				this.setRotation(90.0f);
				break;
		}
		*/
		switch(rotation){
			case Left:
				this.setRotation(270);
				break;
			case Up:
				break;
			case Right:
				this.setRotation(90);
				break;
			case Down:
				this.setRotation(180);
				break;
		}
	}
}
